{include file="header.html"}
<div> 
<ul class="nav nav-tabs">
	<li><a href="{$appadmin}?m=ymdian_apply">申请审核</a></li>
</ul>
 <table class='table table-bordered' width='100%'>
  <tr>
   <td>id</td>
   <td>名字</td>
   <td>电话</td>
   <td>楼栋</td>
   <td>性别</td>
   <td>申请时间</td>
   <td>状态</td>
<td>操作</td>
  </tr>
 {foreach item=c from=$data}
<tr>
   <td>{$c.id}</td>
   <td>{$c.nickname}</td>
   <td>{$c.telephone}</td>
   <td>{$c.sc_id}</td>
   <td>{$c.gender}</td>
   <td>{$c.dateline|date:Y-m-d}</td>
   <td class="status">{if $c.status eq 1}未审核{elseif $c.status eq 2}成功{else}失败{/if}</td>
<td>
<a href="javascript:;" class="doSuccess" url="{$appadmin}?m=ymdian_apply&ajax=1&a=success&id={$c.id}">通过</a>
<a href="javascript:;" class="delete" url="{$appadmin}?m=ymdian_apply&a=delete&id={$c.id}">删除</a></td>
  </tr>
   {/foreach}
 </table>
<div>{$pagelist}</div>
</div>
<script>
$(document).on("click",".doSuccess",function(){
	$.get($(this).attr("url"),function(data){
		if(data.error){
			skyToast(data.message);
		}else{
			skyToast(data.message);
		}
	},"json");
})
</script> 
{include file="footer.html"}